<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .top_lion {
        background-color: aqua;
        position: absolute;
        top: 0px;
        left: 0px;
        width: 100vw;
        height: 50px;
        z-index: 10;
    }

   span {
        top: 0px;
        left: -100%;
        width: 100%;
        height: 10%;
        z-index: 10;
        background: linear-gradient(to right, transparent, #ff0000);
        animation: move1 1s linear infinite;
    }

    @keyframes move1 {
        0% {
            left: -100%;
        }
        50%,
        100% {
            left: 100%;
        }
    }
    </style>
</head>

<body>
    <!-- <div class="top_lion">  </div> -->
        <span></span>
  

    <form action="" target="_parent"></form>
</body>

</html>



<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Demo</title>
  <!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
  <link href="//unpkg.com/layui@2.9.10/dist/css/layui.css" rel="stylesheet">
</head>
<body>
<div class="layui-carousel" id="ID-carousel-demo-1">
  <div carousel-item>
    <div>条目1</div>
    <div>条目2</div>
    <div>条目3</div>
    <div>条目4</div>
    <div>条目5</div>
  </div>
</div> 
 
<hr class="ws-space-16">
 
<div class="layui-carousel" id="ID-carousel-demo-2">
  <div carousel-item>
    <div>条目1</div>
    <div>条目2</div>
  </div>
</div>
  
<!-- 请勿在项目正式环境中引用该 layui.js 地址 -->
<script src="//unpkg.com/layui@2.9.10/dist/layui.js"></script> 
<script>
layui.use(function(){
  var carousel = layui.carousel;
  // 渲染 - 常规轮播
  carousel.render({
    elem: '#ID-carousel-demo-1',
    width: 'auto'
  });
  
  // 渲染 - 设置时间间隔、动画类型、宽高度等属性
  carousel.render({
    elem: '#ID-carousel-demo-2',
    interval: 1800,
    anim: 'fade',
    width: 'auto',
    height: '120px'
  });
});
</script>

</body>
</html>
<!-- <script>
        var arr = [];
        for (var i = 0; i < 50; i++) {
            arr.push(String.fromCharCode(i));

        }
        console.log(arr);
    </script> -->